import request from "@/utils/request";

// 查询设备管理列表
export function listLevelWarm(query) {
  return request({
    url: "/levelConfig/list",
    method: "get",
    params:query
  });
}

// 修改
export function updateWarm(data) {
    return request({
      url: "/levelConfig",
      method: "put",
      data: data
    });
  }

  // 新增
  export function addWarm(data) {
    return request({
      url: "/levelConfig",
      method: "post",
      data: data
    });
  }

  // 删除
  export function deletWarm(name) {
    return request({
      url: "/levelConfig/"+name,
      method: "delete",
    });
  }

  // 查询单条
  export function getLevelWarm(name) {
    return request({
      url: "/levelConfig/"+name,
      method: "get",
    });
  }

    // 查询省份
    export function getProvinceList() {
      return request({
        url: "/chinaArea/getProvinceList",
        method: "get",
      });
    }
